package com.personal.book.dao;

import java.util.List;

import com.personal.book.entity.Users;
import com.personal.tools.PageData;
/**
 * 用户dao
 * @author 姬
 *
 */
public interface UserDao {
	
	Users users = new Users();
	//用户注册
	public boolean Add(Users users);
	
	//用户登录
	public boolean Login(String userName,String userPwd);
	
	//用户修改个人信息
	public boolean Update(Users users);
	
	//根据用户名精准查询
	public Users getUserByName(String userName);
	
	//根据用户名关键词模糊查询
	public PageData<Users> getUsersByKeyword(int page, int pageSize, String keywords);

	//删除用户
	public boolean Del(int userId);
	
	//根据用户名查询用户编号
	public int getIdByUserName(String userName);
}
